﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WageClearing.aspx.cs" Inherits="Wage_WageClearing" %>
<html>
<head runat="server">
    <title>无标题页</title>
     <link href="../css/adminCss.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/rl.js"></script>
    <script type="text/javascript" src="../js/submit.js"></script>
    <script type="text/javascript">
    function account()
     {
            var tc=document.getElementById("WStaffPercentage").value;
            var jj=document.getElementById("WStaffPrice").value;
             var dx=document.getElementById("WStaffSalary").value;
             
                var yj=document.getElementById("salemenoy").value;
                 var kc=document.getElementById("Wkc").value;
                
              
         if(isNaN(jj))
          {
           document.getElementById("Label2").innerText="数量格式有误，必须由数字组成";
           }
         else if(isNaN(kc))
         {
           document.getElementById("Label2").innerText="数量格式有误，必须由数字组成";
         }
         else if(!isNaN(jj)&&!isNaN(kc))
         {

                  
                 document.getElementById("WYWage").value=Number(jj)+(tc*yj/100);
                 document.getElementById("WSWage").value=Number(jj)+(tc*yj/100)-Number(kc);
          
              
         }  
      
          
          
     }
     </script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="31" style="height: 22px">
                    <img src="../images/module.gif" width="20" height="22"></td>
                <td style="width: 335px; height: 22px;">
                    <asp:Label ID="lblPath" runat="server"></asp:Label></td>
                <td width="990" align="right" style="height: 22px">
                   <font color="red"> [ <a href="javascript:location.href=document.referrer;" ><font color="red">返回</font></a> ]</font>
                </td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="1" cellspacing="1" class="tabGg">
            <tr>
                <th height="32" colspan="4" bgcolor="#FFFFFF">
                    <table width="100%" border="0">
                        <tr>
                            <td align="center" height="30" colspan="4" bgcolor="#ffffff" class="font14">
                                    工资结算
                                    </td>
                            
                            
                        </tr>
                    </table>
                </th>
            </tr>
            
            <tr>
                <th width="15%" height="30" bgcolor="#FFFFFF" class="r_bg">
                    员工姓名：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="width: 294px">
                    <asp:Label ID="WStaffName" runat="server" ForeColor="red" Text="Label"></asp:Label></td>
                <th width="14%" bgcolor="#FFFFFF" class="r_bg">
                    基本工资：</th>
                <td width="37%" bgcolor="#FFFFFF" class="right_bg">
                  <font color="#0000C0">
                      <asp:TextBox ID="WStaffSalary" runat="server" CssClass="input1"></asp:TextBox>元</font></td>
            </tr>
            <tr>
                <th height="32" bgcolor="#FFFFFF" class="r_bg">
                    所属部门：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="width: 294px">
                    <asp:Label ID ="department" runat="server" ForeColor="#0000C0"></asp:Label></td>
                <th bgcolor="#FFFFFF" class="r_bg">
                   <asp:Label ID="rq" runat="server" Text="业绩日期："></asp:Label></th>
                <td bgcolor="#FFFFFF" class="right_bg">
                   <asp:Label ID="lblydate" runat="server" ForeColor="#0000C0"></asp:Label>
                    <asp:TextBox ID="riqi" runat="server" CssClass="input1"></asp:TextBox></td>
            </tr>
             <tr bgcolor="#3CB6E5" height="5px">
                
            </tr>
            <tr>
                <th height="32" bgcolor="#FFFFFF" class="r_bg">
                    商品名：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="width: 294px">
                    <asp:Label ID ="comodName" runat="server" ForeColor="#0000C0"></asp:Label></td>
                <th bgcolor="#FFFFFF" class="r_bg">
                    型号：</th>
                <td bgcolor="#FFFFFF" class="right_bg">
                    <asp:Label ID ="modul" runat="server" ForeColor="#0000C0"></asp:Label>
                    </td>
            </tr>
            <tr>
                <th height="32" bgcolor="#FFFFFF" class="r_bg">
                    单位：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="width: 294px">
                    <asp:Label ID ="Unit" runat="server" ForeColor="#0000C0"></asp:Label></td>
                <th bgcolor="#FFFFFF" class="r_bg">
                    单价：</th>
                <td bgcolor="#FFFFFF" class="right_bg">
                    <asp:Label ID ="Prices" runat="server" ForeColor="#0000C0"></asp:Label><font color="#0000C0">
                    元</font>
                    </td>
            </tr>
            <tr>
                <th height="32" bgcolor="#FFFFFF" class="r_bg">
                    数量：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="width: 294px">
                    <asp:Label ID ="number" runat="server" ForeColor="#0000C0"></asp:Label></td>
                <th bgcolor="#FFFFFF" class="r_bg">
                    销售业绩：</th>
                <td bgcolor="#FFFFFF" class="right_bg">
                    <font color="#0000C0">
                        <asp:TextBox ID="salemenoy" runat="server"  CssClass="input1"></asp:TextBox>元</font>
                    </td>
            </tr>
            
            
            
            <tr bgcolor="#3CB6E5" height="5px">
                
            </tr>
            <tr>
                <th bgcolor="#ffffff" class="r_bg" style="height: 26px">
                    员工提成：</th>
                <td bgcolor="#ffffff" class="right_bg" style="width: 294px; height: 26px">
                    <asp:TextBox ID="WStaffPercentage" runat="server" ForeColor="#0000C0" Text="0" class="input1" onkeyup="account()" onBlur="if(this.value=='')this.value=0"   onFocus="if(this.value==0)this.value=''" check_money="价格输入错误"></asp:TextBox>
                    <font color="red">%</font></td>
                <th bgcolor="#ffffff" class="r_bg" style="height: 26px">
                    </th>
                <td bgcolor="#ffffff" class="right_bg" style="height: 26px">
                    &nbsp;</td>
            </tr>
            <tr>
                <th bgcolor="#ffffff" class="r_bg" style="height: 26px">
                    员工奖金：</th>
                <td bgcolor="#ffffff" class="right_bg" style="width: 294px; height: 26px">
                    <asp:TextBox ID="WStaffPrice" runat="server" Text="0" ForeColor="#0000C0" class="input1" onkeyup="account()" onBlur="if(this.value=='')this.value=0"   onFocus="if(this.value==0)this.value=''" check_money="价格输入错误"></asp:TextBox>
                    <font color="red">元</font></td>
                <th bgcolor="#ffffff" class="r_bg" style="height: 26px">
                    扣除工资：</th>
                <td bgcolor="#ffffff" class="right_bg" style="height: 26px">
                    <asp:TextBox ID="Wkc" runat="server" class="input1" Text="0" ForeColor="#0000C0" onkeyup="account()" onBlur="if(this.value=='')this.value=0"   onFocus="if(this.value==0)this.value=''" check_money="价格输入错误"></asp:TextBox>
                    <font color="red">元</font></td>
            </tr>
            
            <tr>
                <th bgcolor="#FFFFFF" class="r_bg" style="height: 26px">
                    应发工资：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="height: 26px; width: 294px;">
                    <asp:TextBox ID="WYWage" runat="server" Text="0" class="input1" ForeColor="#0000C0"></asp:TextBox>
                    <font color="red">元</font></td>
                <th bgcolor="#FFFFFF" class="r_bg" style="height: 26px">
                    实发工资：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="height: 26px">
                    <asp:TextBox ID="WSWage" runat="server" Text="0" class="input1" ForeColor="#0000C0">
                    </asp:TextBox>
                    <font color="red">元</font></td>
            </tr>
            <tr>
                <th bgcolor="#FFFFFF" class="r_bg" style="height: 26px">
                    </th>
                <td colspan="3" bgcolor="#FFFFFF" class="right_bg" style="height: 26px">
                    </td>
            </tr>
            <tr>
                <th bgcolor="#FFFFFF" class="r_bg" style="height: 16px">
                    操作人员：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="height: 16px; width: 294px;">
                    <asp:Label ID="lblName" runat="server"></asp:Label></td>
                <th bgcolor="#FFFFFF" class="r_bg" style="height: 16px">
                    操作时间：</th>
                <td bgcolor="#FFFFFF">
                    <asp:Label ID="cleaTime" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <th bgcolor="#FFFFFF" class="r_bg">
                </th>
                <td colspan="3" bgcolor="#FFFFFF" class="right_bg">
                    <asp:Button ID="btnAdd" CssClass="submit" runat="server" Text=" 结算 " OnClientClick="return checknull(this.form)" OnClick="btnAdd_Click"     />
                </td>
            </tr>
        </table>
        <asp:HiddenField ID="hfgetId" runat="server" />
        <asp:HiddenField ID="hfxs" runat="server" />
        <asp:HiddenField ID="hfgetTim" runat="server" />
        <asp:HiddenField ID="Hfname" runat="server" />
      
    </form>
</body>
</html>
